package com.qianyu.project.web.controller.xz;

import com.qianyu.project.service.IExpenseTypeService;
import com.qianyu.project.service.IFundPlanDetailService;
import com.qianyu.project.utils.Result;
import com.qianyu.project.utils.ResultTool;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author:xz
 * @Date: Created in 2021/2/11 16:23
 */

@RestController
@RequestMapping("/fundPlanDetail")
public class FundPlanDetailController {

    @Autowired
    private IFundPlanDetailService fundPlanDetailService;



    @GetMapping("/plan/{id}")
    public Result getByPlan(@PathVariable String id) {
        System.out.println(id+"mx");
        return ResultTool.success(fundPlanDetailService.getByPlan(id));
    }



}
